interface Worker {
    name: string
    age: number
    email: string
}

interface Student {
    name: string
    age: number
    email: string
    score: number
}

type MyExtract<T, U> = T extends U ? T : never

type ComponentKeys = MyExtract<keyof Worker, keyof Student>

const user1:ComponentKeys = 'name'

